</div><!-- id="wrapper_nano" -->

  <!--footer -->
  <div id="outer_footer">
    <div id="footer_nano">
      <div id="left_footer">
        
        <ul>
          <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer') ) : ?>
          <?php endif; ?>
      </div><!-- id="left_footer" -->
	  
      <div id="right_footer">

          <div id='phucnano'style='' >
             <a href="<?php bloginfo('url'); ?>">
                <?php $logo = (get_option('chameleon_logo') <> '') ? get_option('chameleon_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?>
                <img src="<?php echo esc_url($logo); ?>" alt="" id="logo"/>
             </a>
         </div>
		
      </div><!-- end id="right_footer" -->
	  
       <div class="bottom_footer">
        <p>&copy; 2013 Trung tâm Nano và Năng lượng </p>
        <a href="#" id="topScroll">Lên đầu</a> 
	   </div><!-- class="bottom_footer" --> 
	   
    </div><!-- id="footer_nano" -->
	
  </div><!-- id="outer_footer" -->
  
  <br class="clear" />
  
</div><!-- id="outer_wrapper" -->

<?php 
if (is_page('upload_image_jquery')) 
{
 ?>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
        <script src="<?php bloginfo('template_directory'); ?>/js/vendor/jquery.ui.widget.js"></script>
        <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
        <script src="http://blueimp.github.io/JavaScript-Load-Image/js/load-image.min.js"></script>
        <!-- The Canvas to Blob plugin is included for image resizing functionality -->
        <script src="http://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
        <!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
        <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.iframe-transport.js"></script>
        <!-- The basic File Upload plugin -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.fileupload.js"></script>
        <!-- The File Upload processing plugin -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.fileupload-process.js"></script>
        <!-- The File Upload image preview & resize plugin -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.fileupload-image.js"></script>
        <!-- The File Upload audio preview plugin -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.fileupload-audio.js"></script>
        <!-- The File Upload video preview plugin -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.fileupload-video.js"></script>
        <!-- The File Upload validation plugin -->
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.fileupload-validate.js"></script>
 <?php
}
?>



 
	<?php get_template_part('includes/scripts'); ?>

  <?php
      //wpadminbar
    global $current_user;
    get_currentuserinfo();

    //var_dump($current_user->allcaps);
    if ($current_user->allcaps['administrator'] == true) 
    {
        //echo 'hien cac quyen cazo hon '; 
      
    }else if (($current_user->allcaps['level_1'] == true) and ($current_user->allcaps['level_0'] == true)) {
          //echo 'set quyen cho demo';
          get_template_part('includes/admin_demo');
       }
      
    ?>
	<?php wp_footer(); ?>

<script type="text/javascript">
/*
  jQuery(document).ready(function(){
       jQuery('img').error(function(){
         jQuery(this).attr('src', '<?php bloginfo('template_directory'); ?>/images/no_image.gif');
        }); 
      }); 
*/
</script>

<?php
 if (is_page('upload_ttnangluongnano')) 
 {
?>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/assets/js/jquery.knob.js"></script>

    <!-- jQuery File Upload Dependencies -->
    <script src="<?php bloginfo('template_directory'); ?>/assets/js/jquery.ui.widget.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/assets/js/jquery.iframe-transport.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/assets/js/jquery.fileupload.js"></script>
  
    <!-- Our main JS file -->
    <script src="<?php bloginfo('template_directory'); ?>/assets/js/script.js"></script>
<?php
}
 ?>

</body>
</html>
